﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.Projections;

namespace BioImg
{
    public abstract class BioImgProviderBase: GMapProvider
    {
        public BioImgProviderBase()
        {
            MaxZoom = null;
            RefererUrl = "http://www.bionovationimc.com";
            Copyright = string.Format("©{0} Bionovation Corporation", DateTime.Today.Year);
        }

        public override PureProjection Projection
        {
            get
            {
                return MercatorProjection.Instance;
            }
        }

        GMapProvider[] overlays;
        public override GMapProvider[] Overlays
        {
            get
            {
                if(overlays == null)
                {
                    overlays = new GMapProvider[] { this };
                }
                return overlays;
            }
        }


         
    }
}
